<?php 
if (file_exists(dirname( __FILE__ ) . '/../wpudata/wpuconf.php')) { include dirname( __FILE__ ) . '/../wpudata/wpuconf.php'; }
if ($taparentid) { 
	function wpujs() { echo '<script type="text/javascript" src="'.get_bloginfo('template_url').'/wpudata/wpu.js"></script>'."\n"; }
	$tawlpo = 'child_of='.$taparentid.'&exclude='.$taexclude.'&depth='.$tanavdepth.'&title_li=&sort_order=asc&sort_column=menu_order'; 
	add_action('wp_footer','wpujs');?>
	<ul id="topnav">
	<li class="page_item"><a href="<?php bloginfo('url'); ?>">Home</a></li>
	<?php wp_list_pages($tawlpo); ?>
	</ul>

<?php } ?>
